import axios from '@/libs/api.request'

export const getRouterReq = (access) => {
  return axios.request({
    url: 'get_router',
    params: {
      access
    },
    method: 'get'
  })
}

/**
 * 获取home页左侧菜单树
 */
export const getMenuTree = () => {
  return axios.request({
    url: '/gas/domain/resource/menu/tree',
    data: {},
    method: 'post',
    headers: {
      'Content-type': 'application/json'
    }
  })
}
